﻿using FunArts.EasyDevOps.Shared.Models.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FunArts.EasyDevOps.Shared.Models.SshClient.Command
{
    public class CheckFileCommand : ILinuxCommand
    {
        public string FileName { get; set; }
        public string BuildCommand(SystemVersionTypeEnum systemVersionType)
        {
            return $"if [ -f \"{FileName}\" ]; then\r\n    echo \"true\"\r\nelse\r\n    echo \"false\"\r\nfi";
        }
    }
}
